home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2014 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: mail2news.demon.co.uk!csmltd.demon.co.uk
  2. From: Martyn Read <Martyn@csmltd.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Newbie Question - Probably Dumb as well
  5. Date: Thu, 18 Jan 1996 13:41:30 
  6. Organization: Myorganisation
  7. Message-ID: <194990319wnr@csmltd.demon.co.uk>
  8. Reply-To: Martyn@csmltd.demon.co.uk
  9. X-NNTP-Posting-Host: csmltd.demon.co.uk
  10. X-Newsreader: Newswin Alpha 0.9
  11. X-Mail2News-Path: relay-4.mail.demon.net!post.demon.co.uk!csmltd.demon.co.uk
  12.  
  13. Hello,
  14. Apologies if this is a dumb question but:
  15. I have a comma delimited file like
  16.  
  17. 999,"AAAAAAAAAA AAAAAAAAA",999,999,999,"AA"
  18. Int, String               ,Int,Int,Int,String
  19.  
  20. where all strings in the file have double quotes.
  21.  
  22. Can I read the file into a struct using fscanf to ignore the double 
  23. quotes as well as the commas?
  24.  
  25. If not, what is the recommended method(as per the experts)?
  26.  
  27. Many thanks in advance,
  28. Please e-mail direct as I'm sure this is of little interest to the 
  29. gurus.
  30.  
  31. I am teaching myself C (Very slowly at present but getting there)
  32.  
  33. Regards,
  34. Martyn
  35.  
  36. -- 
  37. Martyn Read
  38.  
  39.